//
//  ShopTableViewCell.swift
//  worldexchange
//
//  Created by xionghao on 2019/1/10.
//  Copyright © 2019 xionghao. All rights reserved.
//

import UIKit

class ShopTableViewCell: QMUITableViewCell {

    
   
    @IBOutlet weak var shopImage: UIImageView!
    
    @IBOutlet weak var name: UILabel!
    
    @IBOutlet weak var tel: UILabel!
    
    @IBOutlet weak var address: UILabel!
    
    
    var item:ShopItem!  {
        didSet {
            shopImage.kf.setImage(with: URL(string: IMAGE_HOST + item.image))
            let locale = LanguageHelper.shareInstance.locale
            tel.text = item.ex_title
            var description = "\(LanguageHelper.getString(key: "textWorkDay")): \(item.eex_title)\n"
//            description = description + "\(LanguageHelper.getString(key: "textSaturday"))" + ": " + item.tex_title + "\n"
            description = description + "\(LanguageHelper.getString(key: "textSunday"))" + ": " + LanguageHelper.getString(key: item.taddress) + "\n"
            address.text = description
             self.name.text = item.title
        }
    }
    
    
    override func awakeFromNib() {
        super.awakeFromNib()
        self.contentView.qmui_borderPosition = .bottom
        self.contentView.qmui_borderColor = UIColor.qmui_color(withHexString: "#d5d5d5")
        self.contentView.qmui_borderWidth = 0.5
        // Initialization code
    }

    override func setSelected(_ selected: Bool, animated: Bool) {
        super.setSelected(selected, animated: animated)

        // Configure the view for the selected state
    }
    
}
